package com.uchedao.seller.ui.car.base;

import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.uchedao.seller.R;

/**
 * Created by hang on 2015/10/23.
 */
public abstract class BasePublishActivity extends BaseActivity {

    protected TextView tvTopTitle;
    protected Button btnTopback;
    protected Button btnTopRight1;

    protected LinearLayout llBottom;
    protected Button btnBottomNext;
    protected Button btnButtomSave;

    protected void initToBar(String title) {
        tvTopTitle = (TextView) findViewById(R.id.tvTopTitle);
        btnTopback = (Button) findViewById(R.id.btnTopBack);
        btnTopRight1 = (Button) findViewById(R.id.btnTopRight1);

        tvTopTitle.setText(title);
        btnTopback.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }

    protected void initBottomBar() {
        llBottom = (LinearLayout) findViewById(R.id.llPublishBottom);
        btnBottomNext = (Button) findViewById(R.id.btnPublishNext);
        btnButtomSave = (Button) findViewById(R.id.btnPublishSave);
        llBottom.setVisibility(View.VISIBLE);
    }
}
